<%-- $Id: attendance.jsp 149 2011-07-26 02:07:42Z bs24event@gmail.com $ --%><%--
--%><%@page pageEncoding="UTF-8"%><%--
--%><%@ include file="/common/common.jsp"%><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ja" lang="ja">
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<meta http-equiv="Content-style-Type" content="text/css" />
<meta name="robots" content="noindex,nofollow" />
<link rel="stylesheet" href="/css/base.css" type="text/css" />
<script src="/js/jquery-1.6.1.min.js" type="text/javascript" ></script>
<script type="text/javascript">
<!--
function fDelete(key, version, eventKey, eventVersion) {
	$('#edit_form > #key').val(key);
	$('#edit_form > #version').val(version);
	$('#edit_form > #eventKey').val(eventKey);
	$('#edit_form > #eventVersion').val(eventVersion);
	$('#edit_form').submit();
}
//-->
</script>
<title>Gyoujibook イベント出欠登録</title>
</head>
<body>
<div id="top">
	<%-- ヘッダー --%>
	<%@ include file="/common/header.jsp"%>
	<%-- コンテンツ --%>
	<div id="contents">
		<div id="main">
			<div id="attendance_submit">
				<form action="/event/attendance/register" method='post'>
					<input type="hidden"  name="key"  value="${key}"  />
					<input type="hidden" name="version"  value="${version}"  />
					<label for="name">名前</label><input type="text" name="name" />
					<label for="status">出欠</label>
					<select name="status">
						<option value="－"></option>
						<option value="○">○</option>
						<option value="△">△</option>
						<option value="×">×</option>
					</select>
					<label for="comment">コメント</label>
					<input type="text" name="comment" />
					<input type="submit"  />
				</form>
			</div>
			<div id="attendance_list">
				<form id="edit_form" action="/event/attendance/delete" method="post">
					<table>
						<thead>
							<tr>
								<th>名前</th>
								<th>出欠</th>
								<th>コメント</th>
							</tr>
						</thead>
						<tbody>
<c:forEach var="attendance" items="${attendanceList}">
							<tr>
								<td><c:out value="${attendance.name}"  /></td>
								<td><c:out value="${attendance.status}"  /></td>
								<td><c:out value="${attendance.comment}"  /></td>
								<td><input type="button" class="btn_delete" value="削除" onclick="fDelete('${f:h(attendance.key)}', '${attendance.version}', '${f:h(attendance.eventKey)}', '${attendance.eventVersion}')" /></td>
							</tr>
</c:forEach>
						</tbody>
					</table>
					<input type="hidden" name="key" id="key" value="" />
					<input type="hidden" name="version" id="version" value="" />
					<input type="hidden" name="eventKey" id="eventKey" value="" />
					<input type="hidden" name="eventVersion" id="eventVersion" value="" />
				</form>
			</div>
				<table>
					<thead>
						<tr>
							<th>出席</th>
							<th>欠席</th>
							<th>未定</th>
						</tr>
					</thead>
					<tbody>
						<tr>
							<th><label for="Shusseki" > ${Shusseki}</label> </th>
							<th><label for="Kesseki">${Kesseki}</label></th>
							<th><label for="Mitei" >${Mitei}</label></th>
						</tr>
					</tbody>
				</table>
			<div class="pt20"><a href="/event/list" class="back">イベント一覧へ戻る</a></div>
		</div>
	</div><!-- contents end -->
	<%-- フッター --%>
	<%@ include file="/common/footer.jsp"%>
</div><!-- top end -->
</body>
</html>
